package com.xm.biz.impl;

import com.xm.biz.NewsBiz;
import com.xm.dao.NewsDao;
import com.xm.dao.impl.NewsDaoImpl;
import com.xm.po.News;

import java.util.List;

/**
 * @author xie'lin'feng
 * @date 2020-08-11-15:36
 * @description 新闻业务逻辑接口实现类
 */
public class NewsBizImpl implements NewsBiz {
    //初始化数据层
    NewsDao newsDao = new NewsDaoImpl();
    @Override
    public List<News> getAll() {
        return newsDao.getAll();
    }
}
